import 'package:self32/generated/json/base/json_convert_content.dart';
import 'package:self32/entity/setting_entity.dart';
import 'package:get/get.dart';


SettingEntity $SettingEntityFromJson(Map<String, dynamic> json) {
	final SettingEntity settingEntity = SettingEntity();
	final String? websocketAddr = jsonConvert.convert<String>(json['api_addr']);
	if (websocketAddr != null) {
		settingEntity.websocketAddr = websocketAddr;
	}
	final String? sip2ApiAddr = jsonConvert.convert<String>(json['sip2ApiAddr']);
	if (sip2ApiAddr != null) {
		settingEntity.sip2ApiAddr = sip2ApiAddr;
	}
	final String? faceApiAddr = jsonConvert.convert<String>(json['faceApiAddr']);
	if (faceApiAddr != null) {
		settingEntity.faceApiAddr = faceApiAddr;
	}
	final String? psw = jsonConvert.convert<String>(json['psw']);
	if (psw != null) {
		settingEntity.psw = psw;
	}
	final String? auth = jsonConvert.convert<String>(json['auth']);
	if (auth != null) {
		settingEntity.auth = auth;
	}
	final String? norms = jsonConvert.convert<String>(json['norms']);
	if (norms != null) {
		settingEntity.norms = norms;
	}
	final String? deviceNo = jsonConvert.convert<String>(json['device_no']);
	if (deviceNo != null) {
		settingEntity.deviceNo = deviceNo;
	}
	final double? scale1 = jsonConvert.convert<double>(json['scale1']);
	if (scale1 != null) {
		settingEntity.scale1 = scale1;
	}
	final double? scale2 = jsonConvert.convert<double>(json['scale2']);
	if (scale2 != null) {
		settingEntity.scale2 = scale2;
	}
	final double? translateX1 = jsonConvert.convert<double>(json['translateX1']);
	if (translateX1 != null) {
		settingEntity.translateX1 = translateX1;
	}
	final double? translateX2 = jsonConvert.convert<double>(json['translateX2']);
	if (translateX2 != null) {
		settingEntity.translateX2 = translateX2;
	}
	final double? translateY1 = jsonConvert.convert<double>(json['translateY1']);
	if (translateY1 != null) {
		settingEntity.translateY1 = translateY1;
	}
	final double? translateY2 = jsonConvert.convert<double>(json['translateY2']);
	if (translateY2 != null) {
		settingEntity.translateY2 = translateY2;
	}
	final String? deviceName = jsonConvert.convert<String>(json['deviceName']);
	if (deviceName != null) {
		settingEntity.deviceName = deviceName;
	}
	final int? rotate = jsonConvert.convert<int>(json['rotate']);
	if (rotate != null) {
		settingEntity.rotate = rotate;
	}
	final int? actionTime = jsonConvert.convert<int>(json['actionTime']);
	if (actionTime != null) {
		settingEntity.actionTime = actionTime;
	}
	return settingEntity;
}

Map<String, dynamic> $SettingEntityToJson(SettingEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['api_addr'] = entity.websocketAddr;
	data['sip2ApiAddr'] = entity.sip2ApiAddr;
	data['faceApiAddr'] = entity.faceApiAddr;
	data['psw'] = entity.psw;
	data['norms'] = entity.norms;
	data['auth'] = entity.auth;
	data['scale1'] = entity.scale1;
	data['scale2'] = entity.scale2;
	data['translateX1'] = entity.translateX1;
	data['translateX2'] = entity.translateX2;
	data['translateY1'] = entity.translateY1;
	data['translateY2'] = entity.translateY2;
	data['device_no'] = entity.deviceNo;
	data['deviceName'] = entity.deviceName;
	data['rotate'] = entity.rotate;
	data['actionTime'] = entity.actionTime;
	return data;
}